30. Araxis Merge File Comparison Report

Produced by Araxis Merge on 2021-05-13 09:08:39 +0000. See www.araxis.com for information about Merge. This report uses XHTML and CSS2, and is best viewed with a modern standards-compliant browser. For optimum results when printing this report, use landscape orientation and enable printing of background images and colours in your browser.

30.1 Files compared

#LocationFileLast Modified
1/Applications/Ampps/www/Porto 3.2.2/Theme Files/Magento 2.x/Porto Theme/app/code/Mageplaza/LayeredNavigation/Model/SearchSearchCriteriaBuilder.php2020-06-26 11:11:14 +0000
2/Applications/Ampps/www/Porto v4.0.0/Theme Files/Magento 2.x/Porto Theme/app/code/Mageplaza/LayeredNavigation/Model/SearchSearchCriteriaBuilder.php2020-06-26 11:11:14 +0000

30.2 Comparison summary

DescriptionBetween
Files 1 and 2
Text BlocksLines
Unchanged1198
Changed00
Inserted00
Removed00

30.3 Comparison options

WhitespaceConsecutive whitespace is treated as a single space
Character caseDifferences in character case are significant
Line endingsDifferences in line endings (CR and LF characters) are ignored
CR/LF charactersNot shown in the comparison detail
Active line-pairing rules

30.4 Active regular expressions

No regular expressions were active.

30.5 Comparison detail

1 <?php 1 <?php
2 /** 2 /**
3  * Mageplaza 3  * Mageplaza
4  * 4  *
5  * NOTICE OF LICENSE 5  * NOTICE OF LICENSE
6  * 6  *
7  * This source file is subject to the Mageplaza.com license that is 7  * This source file is subject to the Mageplaza.com license that is
8  * available through the world-wide-web at this URL: 8  * available through the world-wide-web at this URL:
9  * https://www.mageplaza.com/LICENSE.txt 9  * https://www.mageplaza.com/LICENSE.txt
10  * 10  *
11  * DISCLAIMER 11  * DISCLAIMER
12  * 12  *
13  * Do not edit or add to this file if you wish to upgrade this extension to newer 13  * Do not edit or add to this file if you wish to upgrade this extension to newer
14  * version in the future. 14  * version in the future.
15  * 15  *
16  * @category    Mageplaza 16  * @category    Mageplaza
17  * @package     Mageplaza_LayeredNavigation 17  * @package     Mageplaza_LayeredNavigation
18  * @copyright   Copyright (c) Mageplaza (https://www.mageplaza.com/) 18  * @copyright   Copyright (c) Mageplaza (https://www.mageplaza.com/)
19  * @license     https://www.mageplaza.com/LICENSE.txt 19  * @license     https://www.mageplaza.com/LICENSE.txt
20  */ 20  */
21  21 
22 namespace Mageplaza\LayeredNavigation\Model\Search; 22 namespace Mageplaza\LayeredNavigation\Model\Search;
23  23 
24 use Magento\Framework\Api\ObjectFactory; 24 use Magento\Framework\Api\ObjectFactory;
25 use Magento\Framework\Api\Search\SearchCriteria; 25 use Magento\Framework\Api\Search\SearchCriteria;
26 use Magento\Framework\Api\Search\SearchCriteriaBuilder as SourceSearchCriteriaBuilder; 26 use Magento\Framework\Api\Search\SearchCriteriaBuilder as SourceSearchCriteriaBuilder;
27 use Magento\Framework\Api\SortOrderBuilder; 27 use Magento\Framework\Api\SortOrderBuilder;
28 use Mageplaza\LayeredNavigation\Helper\Data as LayerHelper; 28 use Mageplaza\LayeredNavigation\Helper\Data as LayerHelper;
29  29 
30 /** 30 /**
31  * Builder for SearchCriteria Service Data Object 31  * Builder for SearchCriteria Service Data Object
32  */ 32  */
33 class SearchCriteriaBuilder extends SourceSearchCriteriaBuilder 33 class SearchCriteriaBuilder extends SourceSearchCriteriaBuilder
34 { 34 {
35     /** 35     /**
36      * @var LayerHelper as LayerHelper; 36      * @var LayerHelper as LayerHelper;
37      */ 37      */
38     protected $helper; 38     protected $helper;
39  39 
40     /** 40     /**
41      * SearchCriteriaBuilder constructor. 41      * SearchCriteriaBuilder constructor.
42      * 42      *
43      * @param LayerHelper $helper 43      * @param LayerHelper $helper
44      * @param ObjectFactory $objectFactory 44      * @param ObjectFactory $objectFactory
45      * @param FilterGroupBuilder $filterGroupBuilder 45      * @param FilterGroupBuilder $filterGroupBuilder
46      * @param SortOrderBuilder $sortOrderBuilder 46      * @param SortOrderBuilder $sortOrderBuilder
47      */ 47      */
48     public function __construct( 48     public function __construct(
49         LayerHelper $helper, 49         LayerHelper $helper,
50         ObjectFactory $objectFactory, 50         ObjectFactory $objectFactory,
51         FilterGroupBuilder $filterGroupBuilder, 51         FilterGroupBuilder $filterGroupBuilder,
52         SortOrderBuilder $sortOrderBuilder 52         SortOrderBuilder $sortOrderBuilder
53     ) { 53     ) {
54         $this->helper = $helper; 54         $this->helper = $helper;
55  55 
56         parent::__construct($objectFactory, $filterGroupBuilder, $sortOrderBuilder); 56         parent::__construct($objectFactory, $filterGroupBuilder, $sortOrderBuilder);
57     } 57     }
58  58 
59     /** 59     /**
60      * @param $attributeCode 60      * @param $attributeCode
61      * 61      *
62      * @return $this 62      * @return $this
63      */ 63      */
64     public function removeFilter($attributeCode) 64     public function removeFilter($attributeCode)
65     { 65     {
66         $this->filterGroupBuilder->removeFilter($attributeCode); 66         $this->filterGroupBuilder->removeFilter($attributeCode);
67  67 
68         return $this; 68         return $this;
69     } 69     }
70  70 
71     /** 71     /**
72      * @return SearchCriteriaBuilder 72      * @return SearchCriteriaBuilder
73      */ 73      */
74     public function cloneObject() 74     public function cloneObject()
75     { 75     {
76         $cloneObject = clone $this; 76         $cloneObject = clone $this;
77         $cloneObject->setFilterGroupBuilder($this->filterGroupBuilder->cloneObject()); 77         $cloneObject->setFilterGroupBuilder($this->filterGroupBuilder->cloneObject());
78  78 
79         return $cloneObject; 79         return $cloneObject;
80     } 80     }
81  81 
82     /** 82     /**
83      * @param $filterGroupBuilder 83      * @param $filterGroupBuilder
84      */ 84      */
85     public function setFilterGroupBuilder($filterGroupBuilder) 85     public function setFilterGroupBuilder($filterGroupBuilder)
86     { 86     {
87         $this->filterGroupBuilder = $filterGroupBuilder; 87         $this->filterGroupBuilder = $filterGroupBuilder;
88     } 88     }
89  89 
90     /** 90     /**
91      * Return the Data type class name 91      * Return the Data type class name
92      * 92      *
93      * @return string 93      * @return string
94      */ 94      */
95     protected function _getDataObjectType() 95     protected function _getDataObjectType()
96     { 96     {
97         return SearchCriteria::class; 97         return SearchCriteria::class;
98     } 98     }
99 } 99 }